package com.ruoyi.student.service.impl;

import java.util.List;

import com.ruoyi.teacher.domain.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.BblClassMapper;
import com.ruoyi.student.domain.BblClass;
import com.ruoyi.student.service.IBblClassService;

/**
 * 班级Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-18
 */
@Service
public class BblClassServiceImpl implements IBblClassService 
{
    @Autowired
    private BblClassMapper bblClassMapper;

    /**
     * 查询班级
     * 
     * @param id 班级主键
     * @return 班级
     */
    @Override
    public BblClass selectBblClassById(Long id)
    {
        return bblClassMapper.selectBblClassById(id);
    }

    /**
     * 查询班级列表
     * 
     * @param bblClass 班级
     * @return 班级
     */
    @Override
    public List<BblClass> selectBblClassList(BblClass bblClass)
    {
        return bblClassMapper.selectBblClassList(bblClass);
    }

    /**
     * 新增班级
     * 
     * @param bblClass 班级
     * @return 结果
     */
    @Override
    public int insertBblClass(BblClass bblClass)
    {
        return bblClassMapper.insertBblClass(bblClass);
    }

    /**
     * 修改班级
     * 
     * @param bblClass 班级
     * @return 结果
     */
    @Override
    public int updateBblClass(BblClass bblClass)
    {
        return bblClassMapper.updateBblClass(bblClass);
    }

    /**
     * 批量删除班级
     * 
     * @param ids 需要删除的班级主键
     * @return 结果
     */
    @Override
    public int deleteBblClassByIds(Long[] ids)
    {
        return bblClassMapper.deleteBblClassByIds(ids);
    }

    /**
     * 删除班级信息
     * 
     * @param id 班级主键
     * @return 结果
     */
    @Override
    public int deleteBblClassById(Long id)
    {
        return bblClassMapper.deleteBblClassById(id);
    }

    @Override
    public List<BblClass> findall() {
        return bblClassMapper.findAll();
    }

    @Override
    public List<Teacher> getType1() {
        return bblClassMapper.getType1();
    }
    @Override
    public List<Teacher> getType2() {
        return bblClassMapper.getType2();
    }
    @Override
    public List<Teacher> getType3() {
        return bblClassMapper.getType3();
    }
}
